class Department < ActiveRecord::Base
	has_many :articles, :order => :author
  
	validates_presence_of :name,:number
	validates_uniqueness_of :name,:number
	def self.find_all
		find(:all,:order=>"number")
	end

end
